From 3206f975b84a98ff4bd8a044cf9d1e54310e299e Mon Sep 17 00:00:00 2001 From: "jfehlig@jfehlig2.provo.novell.com" Date: Fri, 17 Nov 2006 16:21:14 -0700 Subject: [PATCH] The legacy apis return a value of None on success, which was being converted to a value of 'nil' in the xmlrpc response. The Xen IPI spec states that destroy, hard_shutdown, pause, resume, start, suspend, and unpause return void. This patch makes it so and permits proper parsing of the response by clients (libxen) that follow the spec. Signed-off-by: Jim Fehlig --- tools/python/xen/xend/XendAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py index 9ac9996d79..e75a564185 100644 --- a/tools/python/xen/xend/XendAPI.py +++ b/tools/python/xen/xend/XendAPI.py @@ -257,8 +257,8 @@ def do_vm_func(fn_name, vm_ref, *args): """ xendom = XendDomain.instance() fn = getattr(xendom, fn_name) - return xen_api_success(xendom.do_legacy_api_with_uuid( - fn, vm_ref, *args)) + xendom.do_legacy_api_with_uuid(fn, vm_ref, *args) + return xen_api_success_void() class XendAPI: -- 2.30.2